home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / NotificationMon ƒ / NotificationMon.ƒ / Source / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-22  |  397 b   |  24 lines  |  [TEXT/KAHL]

  1. #include "Event.h"
  2. #include "NotificationMon.h"
  3.  
  4. notificationDoc    *MainView;
  5.  
  6. main(void)
  7. {
  8.  
  9.     InitToolBox(4);                /* Std witch chant + 4 calls to MoreMasters */
  10.     UnloadSeg(&InitToolBox);
  11.     BuildMenuBars();
  12.     InitAppleEvents();
  13.     
  14.     MainView = NewNotificationDoc(128);
  15.  
  16.     RegisterNotificationMonitor();
  17.  
  18.     while(!Done)
  19.         MainEvent();
  20.  
  21.     UpdateNotificationPrefs(MainView);
  22.     UnregisterNotificationMonitor();
  23.  
  24. }